package vm;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;

/**
 * @author 庄子斌
 * @since 2021-02-01
 */
public class Test {

  public static void main(String[] args) {
    Function<List<Integer>, List<Integer>> fun = x -> {
      System.out.println(Thread.currentThread().getName());
      return x;
    };

    List<Integer> id = List.of(1,2,3,4,5,6,7);
    ;

    List<Integer> integer = TestUtil.execute(id, fun);
    System.out.println("最终" + integer);


  }
}
